﻿@using MealBooking.Core.Models.Accounts;
@model Account
@{
    ViewBag.HeaderTitle = "Account Detail";
    Layout = "../Shared/_Layout.cshtml";
    Account account = Model;
}
<!--Navbar-->
<div data-role="navbar" data-iconpos="left">
    <div class="float-left">
        <div data-role="controlgroup" data-type="horizontal" data-inset="true" data-mini="true">
            <a href="@Url.Action("Detail", new { id = account.Id })" data-role="button" data-theme="e">
                Cancel</a> <a href="@Url.Action("EditCustomer", new { id = account.Id })" data-role="button">
                    Edit Balance</a>
        </div>
    </div>
    @Html.Partial("_FloatRightPartial")
</div>
<!--Navbar End-->
@using (Html.BeginForm("EditAccount", "AccountManager", FormMethod.Post))
{
    @Html.HiddenFor(a => a.Id)
    <ul data-role="listview" data-inset="true" data-mini="true">
        <li data-role="list-divider">@account.Name</li>
        <li>
            <label>
                IsActived :
                <select name="IsActived" data-role="slider" data-mini="true">
                    @if (account.IsActived)
                    {
                        <option value="true" selected="selected">Actived</option>
                        <option value="false">Not Actived</option>                        
                    }
                    else
                    {
                        <option value="true">Actived</option>
                        <option value="false" selected="selected">Not Actived</option>                        
                    }
                </select></label>
        </li>
        <li>
            <div data-role="fieldcontain">
                @Html.LabelFor(a => a.Comment, "Comment : ")
                @Html.TextBoxFor(a => a.Comment)
            </div>
        </li>
    </ul>
    <ul data-role="listview" data-inset="true" data-mini="true">
        <li data-role="list-divider"></li>
        <li>
            <div class="ui-grid-a">
                <div class="ui-block-a">
                    <button type="submit">
                        Update</button>
                </div>
                <div class="ui-block-b">
                    <a href="@Url.Action("Detail", new { id = account.Id })" data-role="button" data-theme="e">
                        Cancel</a>
                </div>
            </div>
        </li>
    </ul>
}